package com.liumh.dao;

import com.liumh.entity.Student;
import java.util.*;

public interface IStudentDao {
	// 查找全部学生
	public List<Student> findAllStudents();

	// 根据id查找学生
	public Student findStudentById(int id);

	// 添加学生
	public int insertStudent(Student student);

	// 添加学生，学生id主键数据库设置为AutoIncrement
	public int insertStudentAutoIncrement(Student student);

	// 删除指定学号的学生
	public int deleteStudentById(int id);

	// 修改一个学生
	public int updateStudent(Student student);

	// 按姓氏模糊查询学生
	public List<Student> findStudentsByName(String name);

	// 动态查询if标签
	public List<Student> searchStudentsIf(Student student);

	// 动态查询where标签
	public List<Student> searchStudentsWhere(Student student);

	// 动态查询条件封装到Map对象
	public List<Student> searchStudentsMap(Map<String, Object> map);

	// 动态查询choose
	public List<Student> searchStudentsChoose(Student student);

}
